package model;

import java.awt.Color;

/**
 * Anchor points show where a movement is detected
 * @author	Daniel Mohr, Daniela Grammlich
 */
public class AnchorPoint{
	
	/**
	 * The id of the anchor point
	 */
	private int ID;
	/**
	 * The x position of the anchor point
	 */
	private int XPos;
	/**
	 * The y position of the anchot point
	 */
	private int YPos;
	/**
	 * THe number of the grid, in which the anchor point was located
	 */
	private int gridNumber;
	/**
	 * The color of the point
	 */
	private Color color;
	
	/**
	 * Constructor. Creates a new anchor point
	 * @param startX The x position
	 * @param startY The y position
	 * @param gridNumber The grid number
	 */
	public AnchorPoint(int startX, int startY, int gridNumber){
		this.XPos = startX;
		this.YPos = startY;
		this.gridNumber = gridNumber;
	}

	/**
	 * getter fuer <code>{@link #startXPos}</code>
	 */
	public int getStartXPos() {
		return XPos;
	}

	/**
	 *  setter fuer <code>{@link #startXPos}</code>
	 */
	public void setStartXPos(int startXPos) {
		this.XPos = startXPos;
	}

	/**
	 * getter fuer <code>{@link #startYPos}</code>
	 */
	public int getStartYPos() {
		return YPos;
	}

	/**
	 *  setter fuer <code>{@link #startYPos}</code>
	 */
	public void setStartYPos(int startYPos) {
		this.YPos = startYPos;
	}

	/**
	 * @return the iD
	 */
	public int getID() {
		return ID;
	}

	/**
	 * @param iD the iD to set
	 */
	public void setID(int iD) {
		ID = iD;
	}

	/**
	 * @return the color
	 */
	public Color getColor() {
		return color;
	}

	/**
	 * @param color the color to set
	 */
	public void setColor(Color color) {
		this.color = color;
	}
	
	/**
	 * getter fuer <code>{@link #gridNumber}</code>
	 */
	public int getGridNumber() {
		return gridNumber;
	}

	/**
	 *  setter fuer <code>{@link #gridNumber}</code>
	 */
	public void setGridNumber(int gridNumber) {
		this.gridNumber = gridNumber;
	}
	
}
